package com.beichuan_travel.mapper;


import com.beichuan_travel.model.po.RoomPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoomMapper {

    // 查找房间
    RoomPO queryRoomById(String roomId);
    RoomPO queryRoomByNumber(String roomNumber);


    // 查找满足条件的房间
    List<RoomPO> queryRoomByHotel(String hotelId);
    List<RoomPO> queryRoomByPrice(Integer pricePerNight);
    List<RoomPO> queryRoomByType(Integer roomType);
    List<RoomPO> queryRoomByStatus(Integer roomStatus);
//    List<Room> queryRoomLimit(RoomDTO roomDTO);

    // 添加房间
    int addRoom(RoomPO roomPO);

    // 更新房间居住状态
    int updateRoomStatus();

    // 删除房间
    int deleteRoom(RoomPO roomPO);
    int deleteRoomById(String roomId);

}
